package cn.itsource.org.domain;

import cn.itsource.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Department extends BaseDomain{//ctrl+alt+L  格式化
    private String sn;
    private String name;
    private String dirPath;
    private Integer state;

    private Long manager_id;/*部门经理id*/
    private Employee manager;

    private Long parent_id;/*上级部门id*/
    private Department parent;

    private List<Department> children = new ArrayList<>();

    public static void main(String[] args) {
        Department department = new Department();
    }
}
